<?php
class Arm_Controller_Action_Helper_Themes extends Zend_Controller_Action_Helper_Abstract
{
	/**
	 * Рестер Arm_Acl для модулей.
	 * @var array
	 */
	private static $_register = array();
	
	

   /**
     * Hook into action controller preDispatch() workflow
     *
     * @return void
     */
    public function preDispatch()
    {
        $request    = $this->_actionController->getRequest();
    	$module     = $request->getModuleName();
    	$controller = $request->getControllerName();
    	$action     = $request->getActionName();
    	
        $themes = new Arm_Themes(Arm_Core::getConfigApplication()->themes->toArray());
        $themes->setNameModuleControler($this->_actionController->getRequest()->getModuleName(), $this->_actionController->getRequest()->getControllerName());
        $themes->setTheme();
        return $themes;
    }
    
    

}